package com.shuma.shopmanage.model.draft.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

//@Entity
@TableName("goodsdraft")
@Data
public class GoodsDraft {

    @TableId
    private Long id;

    @Column(name = "name")
    private String name;

    @Column(name = "img_url")
    private String imgUrl;

    @Column(name = "description")
    private String description;

    @Column(name = "type")
    private String type;

    @Column(name = "detail")
    private String detail;

    @Column(name = "cat_id")
    private Long catId;

    @Column(name = "provider_name")
    private String providerName;

    @Column(name = "phone")
    private String phone;

    @Column(name = "service")
    private String service;

    @Column(name = "buy_type")
    private Integer buyType;

    @Column(name = "point_price")
    private Integer pointPrice;

    @Column(name = "cash_price")
    private BigDecimal cashPrice;

    @Column(name = "buy_limit")
    private Integer buyLimit;

    @Column(name = "store")
    private Integer store;

    @Column(name = "create_user_id")
    private Long createUserId;

    @Column(name = "manage_user_id")
    private Long manageUserId;

    @Column(name = "on_time")
    private Date onTime;

    @Column(name = "down_time")
    private Date downTime;


}